# == Schema Information
#
# Table name: join_records
#
#  id         :integer          not null, primary key
#  name       :string
#  mobile     :string
#  address    :string
#  job        :string
#  demand     :string
#  created_at :datetime         not null
#  updated_at :datetime         not null
#  state      :boolean          default(FALSE)
#

class JoinRecord < ApplicationRecord
  validates :name, presence: true
  validates :mobile, :presence => true, :uniqueness => {:case_sensitive => false}, :format => {:with => /\A1\d{10}\z/, :message => '请输入正确的手机号码'}#, :if => :is_not_third_party_account?
  validates :address, presence: true
end
